<%-- 
    Document   : displayTest
    Created on : Oct 27, 2009, 10:21:07 PM
    Author     : tungttgroup1
--%>


<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="java.sql.*" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <jsp:include page="header.jsp" />
        <%@taglib uri="http://ajaxtags.org/tags/ajax" prefix="ajax" %>
        <link rel="stylesheet" href="css/style1.css" />
        <link rel="stylesheet"
              href="css/styles.css"
              type="text/css"/>
        <title>JSP Page</title>
    </head>
    <body>
        <%int id = Integer.parseInt(request.getParameter("subID")); %>
        <div align="left">
            <form action="displayQ.jsp" method="post">
                <jsp:useBean id="ObjectTest" scope="request" class="DAO.DAOTest" />
                <table border="1" width="630" height="113">
                    <thead>
                        <tr height="61">
                            <th align="center">Trung tâm tư vấn giáo dục và bổ trợ kiến trúc phổ thông</th>
                            <th align="center">Kiểm tra:
                                <%

            ResultSet rs = ObjectTest.selectTest(id);
            if (rs.next()) {
                out.println(rs.getInt("TestTime") + " phut");
            }
                                %>
                                <input type="hidden" value="<%=id%>" name="id" >
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr height="70">
                            <td align="center" width="337" ><b>Đề kiểm tra</b> </td>
                            <td align="center" width="337" ><b><% ResultSet rss = ObjectTest.selectTest(id);
            if (rss.next()) {
                out.println(rs.getString("TestName"));
            }
                                    %></b></td>
                        </tr>

                    </tbody>
                </table>

                <table width="631" border="0">
                    <tr>
                        <td width="631" align="center">
                            <input type="submit" value="Bat Dau Thi" id="button" />
                        </td>
                    </tr>
                </table>
            </form>
            <div id="time"></div>
        </div>
                                    <ajax:htmlContent baseUrl="displayQuestion.jsp"
                                                      target="time"
                                                      source="button1"
                                                      parameters="id={id}" />
    </body>

</html>
